<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				padding: 0; margin: 0;
			}
		</style>
	</head>
	<body>
   	 
   		<div style="position:relative;">
		<span style="margin-left:100px;width:18px;overflow:hidden;">
			<select style="width:118px;margin-left:-100px" id="xxx">
				<option value="德国">德国</option>
				<option value="挪威">挪威</option>
				<option value="瑞士"> 瑞士</option>
			</select>
		</span>
		<input name="box" style="width:100px;position:absolute;left:0px;border: none;" id="aaa" placeholder="qqq">
		</div>	
   	
	</body>
</html>
<script type="text/javascript">
	onload = function(){
//		 onchange="this.parentNode.nextSibling.value=this.value"
		var aaa = document.getElementById("aaa");
		aaa.value=''
		var xxx = document.getElementById("xxx");
		xxx.onchange = function(){
			console.log(this.value);
			aaa.value =this.value
		}
		
	}
</script>
